/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cadastro.pessoa;

/**
 *
 * @author alexandre
 */

import java.util.ArrayList;  
import java.util.List;

public class AutoCompleteCidadeBean {
        private String text;  
      
    public String getText() {  
        return text;  
    }  
    public void setText(String text) {  
        this.text = text;  
    }  
      
    public List<String> complete(String query) {  
        List<String> results = new ArrayList<String>();  
          
        for (int i = 0; i < 10; i++) {  
            results.add(query + i);  
        }  
          
        return results;  
    }
    
}
